package com.example.comment_oa.dubbo;

import com.example.comment_oa.pojos.Amount;
import com.example.comment_oa.pojos.Budget;
import com.example.comment_oa.pojos.Standard;
import lombok.Data;

import java.util.Date;
import java.util.List;

public interface AmountDubbo {
    //查询差旅报销标准
    List<Standard> selectStandard(String budgetKm);

    //根据年月，部门，预算科目查询预算
    List<Budget>  selectByyscs(String year, String month, String deptName, String budgetKm);

    //新增报销主表
    int insertBXzb(String amountProcess, String amountTitle, Date amountTime, String deptName, Integer empId, Integer amountState, Double amountMoney,String empCard,String empName);

    //新增报销详表
    int insertBxxb(String bxkm, Double bxje, String invoicePhone, String amountProcess, String deptName, Date cdqj);

    //根据发票号码修改发票状态
    int updateinvoicePhone(String invoicePhone);

    //修改预算初始额
    int updateCsys(Double budgetCsmoney, String budgetYear, String budgetMonth,String deptName, String budgetKm);

    //修改发票状态
    int updatestate(String invoicePhone);


    //根据流程编号修改报销流程的状态
    int updatebxstate(Integer amountState,String amountProcess);

    //修改预算额度
    int updateSy(Double budgeSymoney, String budgetYear, String budgetMonth,String deptName, String budgetKm);

    //增加预算初始额
    int updateCs(Double budgetCsmoney, String budgetYear, String budgetMonth,String deptName, String budgetKm);


    //根据流程编号查询报销主详情
    List<Amount> spju(String amountProcess);
}
